* xterm.c: Fix problems found by static analysis with other toolkits.
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 16 Apr 2011 15:24:20 +0000 (08:24 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 16 Apr 2011 15:24:20 +0000 (08:24 -0700)
commit8eeccb622e3f0863b40c7967a40e8db31f38b1d6
tree80de5e5c0ae69174e30e4681cc7efbaf80682ffa
parent1a840baceb8857ec4dcf9f3a7fc271da3cd5bb31
* xterm.c: Fix problems found by static analysis with other toolkits.

(toolkit_scroll_bar_interaction): Define and use only if USE_X_TOOLKIT.
(x_dispatch_event): Declare static only if !USE_GTK && USE_X_TOOLKIT.
Define if USE_GTK || (HAVE_MENUS && USE_X_TOOLKIT); USE_MOTIF need
not be part of this test.
(SET_SAVED_BUTTON_EVENT): Define only if USE_X_TOOLKIT || USE_GTK.
* xterm.h (x_dispatch_event): Use USE_GTK, not USE_MOTIF, when testing
whether to declare.
* xterm.c, xterm.h (x_mouse_leave): Bring this function back, but only if
defined HAVE_MENUS && !defined USE_X_TOOLKIT && !defined USE_GTK.
src/ChangeLog
src/xterm.c
src/xterm.h